$primary-color: rgba(255, 44, 65, 1);
$min-color: #52c41a;
$max-color: #fa541c;
$disabled-color: rgba(255, 44, 65, 1);
$track-height: 6px;
$thumb-size: 32px;

.range-slider-container {
    width: 380px;
    margin: 0 auto;
    height: 8px;
    background: rgba(238, 238, 238, 1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;

    &.disabled {
        opacity: 0.8;

        .slider-thumb,
        .slider-range,
        .reset-btn {
            cursor: not-allowed;
            pointer-events: none;
        }

        .slider-range {
            background: $disabled-color;
        }

        .slider-thumb {
            background: #ffffff;
            border-color: $disabled-color;

            .thumb-label {
                background: $disabled-color;
            }
        }
    }
}

.value-display {
    display: flex;
    align-items: center;
    font-size: 18px;

    .min-value,
    .max-value {
        font-weight: bold;
        padding: 8px 18px;
        border-radius: 12px;
        min-width: 60px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .min-value {
        background: rgba($min-color, 0.1);
        color: $min-color;
    }

    .max-value {
        background: rgba($max-color, 0.1);
        color: $max-color;
    }

    .separator {
        margin: 0 12px;
        color: #666;
        font-size: 16px;
    }
}

.reset-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    box-shadow: none;

    &::after {
        border: none;
    }

    &:active {
        background: #e8e8e8;
    }
}

.slider-container {
    position: relative;
    height: 60px;
    margin: 0 10px;
    touch-action: none;
}

.slider-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: $track-height;
    background: #f0f0f0;
    border-radius: $track-height;
}

.slider-range {
    position: absolute;
    top: 0px;
    height: $track-height;
    background: $primary-color;
    border-radius: $track-height;
    z-index: 1;
    transition: all 0.2s ease;
}

.tick {
    position: absolute;
    top: 10px;
    transform: translateX(-50%);

    .tick-mark {
        width: 2px;
        height: 8px;
        background: #d9d9d9;
        margin: 0 auto;
    }

    .tick-value {
        display: block;
        font-size: 12px;
        color: #999;
        text-align: center;
        margin-top: 6px;
    }
}

.slider-thumb {
    position: absolute;
    top: -20px;
    width: 70px;
    height: 40px;
    background: #fff;
    border-radius: 20px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 44, 65, 1);
    font-size: 24px;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;

    &.active {
        transform: translateX(-50%) scale(1.15);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .thumb-label {
        position: absolute;
        top: -36px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: bold;
        min-width: 35px;
        text-align: center;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    &.min-thumb {
        border-color: $min-color;

        .thumb-label {
            background: $min-color;
        }
    }

    &.max-thumb {
        border-color: $max-color;

        .thumb-label {
            background: $max-color;
        }
    }
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #999;
    font-size: 14px;
    padding: 0 5px;
}

.status-indicator {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;

    .read-only {
        color: #fa541c;
        padding: 4px 12px;
        background: rgba(250, 84, 28, 0.1);
        border-radius: 12px;
    }

    .editable {
        color: #52c41a;
        padding: 4px 12px;
        background: rgba(82, 196, 26, 0.1);
        border-radius: 12px;
    }
}